package org.jeecg.modules.ywEndFinishedProductEnter.service;

import org.jeecg.common.api.vo.Result;
import org.jeecg.modules.ywEndFinishedProductEnter.entity.YwEndFinishedProductEnterDetail;
import org.jeecg.modules.ywEndFinishedProductEnter.entity.YwEndFinishedProductEnterMain;
import com.baomidou.mybatisplus.extension.service.IService;
import java.io.Serializable;
import java.util.Collection;
import java.util.List;

/**
 * @Description: 完成品入库
 * @Author: jeecg-boot
 * @Date:   2024-08-20
 * @Version: V1.0
 */
public interface IYwEndFinishedProductEnterMainService extends IService<YwEndFinishedProductEnterMain> {

	/**
	 * 添加一对多
	 * 
	 */
	public void saveMain(YwEndFinishedProductEnterMain ywEndFinishedProductEnterMain,List<YwEndFinishedProductEnterDetail> ywEndFinishedProductEnterDetailList) ;
	
	/**
	 * 修改一对多
	 * 
	 */
	public void updateMain(YwEndFinishedProductEnterMain ywEndFinishedProductEnterMain,List<YwEndFinishedProductEnterDetail> ywEndFinishedProductEnterDetailList);
	
	/**
	 * 删除一对多
	 */
	public void delMain (String id);
	
	/**
	 * 批量删除一对多
	 */
	public void delBatchMain (Collection<? extends Serializable> idList);

	/**
	 * 半成品-确认入库
	 * @param id yw_end_finished_product_enter_main主键id
	 * @return
	 */
    Result<?> confirmEnter(String id);

}
